package de.kandlin.view;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import net.miginfocom.swing.MigLayout;

public class HumanDetailPanel extends JPanel {
	
	private static final int DEFAULT_TEXTFIELD_SIZE = 900;

	private static final long serialVersionUID = 1L;
	
	private JTextField username = new JTextField(DEFAULT_TEXTFIELD_SIZE);
	private JTextField alter = new JTextField(DEFAULT_TEXTFIELD_SIZE);
//	
	public JTextField getUsername() {
		return username;
	}

	public void setUsername(JTextField username) {
		this.username = username;
	}
	
	public JTextField getAlter() {
		return alter;
	}

	public void setAlter(JTextField alter) {
		this.alter = alter;
	}
	
	public HumanDetailPanel(){
		super(new MigLayout("", "[][grow]", ""));
		
		add(new JLabel("Name:"));
		add(username, "wrap");

		add(new JLabel("Alter:"));
		add(alter, "wrap");
	}
}
